package com.xyzm.springcloud.springconsumer.service;

import com.xyzm.springcloud.springconsumer.service.callback.ProviderCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "spring-provider", fallback = ProviderCallback.class)
@RequestMapping("/index")
@Service
public interface ProviderService {
    @RequestMapping("/hello")
    public String hello();
}
